package com.itheima.patterns.behaviorpattern.memento.whitebox;

//备忘录对象管理对象
public class RoleStateCaretaker {
    //声明RoleStateMemento类型的变量
    private RoleStateMemento roleStateMemento;
    
    public RoleStateMemento getRoleStateMemento() {
        return roleStateMemento;
    }
    
    public void setRoleStateMemento(RoleStateMemento roleStateMemento) {
        this.roleStateMemento = roleStateMemento;
        //白箱
        //roleStateMemento.setAtk(100);
    }
}